﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoveEat.MODEL.WeChat
{
    /// <summary>
    /// 微信红包接口返回参数
    /// </summary>
    public class WeChatRedEnvelopeResult
    {
        //返回状态码  SUCCESS为成功
        public string return_code { get; set; }
        /// <summary>
        /// 返回信息
        /// </summary>
        public string return_msg { get; set; }


        //以下字段在return_code为SUCCESS的时候有返回
        /// <summary>
        /// 签名
        /// </summary>
        public string sign { get; set; }
        /// <summary>
        /// 错误代码
        /// </summary>
        public string err_code { get; set; }
        /// <summary>
        /// 错误代码描述
        /// </summary>
        public string err_code_des { get; set; }
        //以下字段在return_code 和result_code都为SUCCESS的时候有返回
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string mch_billno { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public string mch_id { get; set; }
        /// <summary>
        /// 公众账号appid
        /// </summary>
        public string xappid { get; set; }
        /// <summary>
        /// 用户openid
        /// </summary>
        public string openid { get; set; }

        /// <summary>
        /// 付款金额
        /// </summary>
        /// 
        public string send_listid { get; set; }

        public string total_amount { get; set; }
    }

    public class return_code
    {

        public bool _return_code { get; set; }
    }

    public class  return_msg
    {
        public string _return_msg { get; set; }
    }
}
